package com.qf.day07.poly;

/**
 * 匕首类
 * 子类
 */
public class Dagger extends Weapon{

    // 攻速值
    private int atkSpeed;

    // 移动速度
    private int movSpeed;


    public Dagger() {
    }

    public Dagger(String name, int damage, int range, int durability, int levelLimit, int atkSpeed, int movSpeed) {
        super(name, damage, range, durability, levelLimit);
        this.atkSpeed = atkSpeed;
        this.movSpeed = movSpeed;
    }

    public int getAtkSpeed() {
        return atkSpeed;
    }

    public void setAtkSpeed(int atkSpeed) {
        this.atkSpeed = atkSpeed;
    }

    public int getMovSpeed() {
        return movSpeed;
    }

    public void setMovSpeed(int movSpeed) {
        this.movSpeed = movSpeed;
    }

    @Override
    public String toString() {
        return "Dagger{" +
                "atkSpeed=" + atkSpeed +
                ", movSpeed=" + movSpeed +
                "} " + super.toString();
    }
}
